package cn.service;

import cn.domain.*;
import cn.utils.HQLHelper;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.List;

/**
 * Created by Administrator on 2017/4/26.
 */
public interface FlowService {
    /**
     * 保存
     * @param application
     */
    public void save(Application application);


    public PageBean getPageBean(HQLHelper hqlHelper, int currentPage);

    /**
     * 根据模板id获取此模板对应的文件输入流
     * @param id
     * @return
     */
    public InputStream getInputStreamById(Long id);

    public Application getById(Long applicationId);
    public List<TaskView> findTaskList(User currentUser);

    public void approve(ApproveInfo ApproveInfo, String taskId);
}
